let app = getApp()
Component({
    properties: {
          valueid:Number
      },
      data:{
      
      },
    lifetimes: {
        attached: function () {
           var that=this
            wx.request({
              url: app.globalData.siteroot,
              data: {
                do:'Chat_getQuestionDetail',
                question_id:that.data.valueid
              },
              success: function(res) {
                 that.setData({
                  detail:res.data.data
                 })
                 wx.setNavigationBarTitle({
                  title:res.data.data.title
                })
              }
            })
       }
      },
    methods: {
      backhome:function(){
        wx.redirectTo({
          url: '/yb_shopv2/entry/video-market/index',
        })
      }
    }
});
